import request from '@/utils/request'

// 查询代码生成列表
export function listWorkHandlerGen(query) {
  return request({
    url: '/system/workHandlerGen/list',
    method: 'get',
    params: query
  })
}

// 查询代码生成详细
export function getWorkHandlerGen(id) {
  return request({
    url: '/system/workHandlerGen/' + id,
    method: 'get'
  })
}

// 新增代码生成
export function addWorkHandlerGen(data) {
  return request({
    url: '/system/workHandlerGen',
    method: 'post',
    data: data
  })
}

// 修改代码生成
export function updateWorkHandlerGen(data) {
  return request({
    url: '/system/workHandlerGen',
    method: 'put',
    data: data
  })
}

// 删除代码生成
export function delWorkHandlerGen(id) {
  return request({
    url: '/system/workHandlerGen/' + id,
    method: 'delete'
  })
}

// 导出代码生成
export function exportWorkHandlerGen(query) {
  return request({
    url: '/system/workHandlerGen/export',
    method: 'get',
    params: query
  })
}


// 复制文件
export function copyFile(id) {
  return request({
    url: '/system/workHandlerGen/copyFile?id=' + id,
    method: 'post'
    // params:{id:id}
  })
}
